import request from "@/utils/request";

export function getUserById(userId){
    return request({
        url: `/shopping/users/getUserById/${userId}`,
        method: 'get'
    })
}

export function updateUser(user){
    return request({
        url: `/shopping/users/update`,
        method: 'put',
        data: user
    })
}